export default {
	list: {
		url: `/platform/list`,
		name: '获取平台列表',
		get: async function (params: object | undefined) {
			return await http.get(this.url, params)
		}
	},
	add: {
		url: `/platform/add`,
		name: '新建平台信息',
		post: async function (data: object | undefined) {
			return await http.post(this.url, data)
		}
	},
	edit: {
		url: `/platform/edit`,
		name: '编辑平台信息',
		post: async function (data: object | undefined) {
			return await http.post(this.url, data)
		}
	},
	state: {
		url: `/platform/state`,
		name: "更改平台状态",
		put: async function (data: object | undefined) {
			return await http.put(this.url, data);
		}
	},
	del: {
		url: `/platform/delete`,
		name: "删除平台信息",
		delete: async function (data: object | undefined) {
			return await http.delete(this.url, data);
		}
	}
}
